package com.xuecheng.base.service;

import com.xuecheng.base.model.dto.BindTeachplanMediaDto;
import com.xuecheng.base.model.dto.SaveTeachplanDto;
import com.xuecheng.base.model.dto.TeachplanDto;
import com.xuecheng.base.model.po.TeachplanMedia;

import java.util.List;

public interface TeachplanService {
    /**
     * 根据课程id查询课程计划
     *
     * @param courseId
     * @return
     */
    public List<TeachplanDto> findTeachplanTree(Long courseId);

    /**
     * 添加或者修改课程计划
     *
     * @param teachplan
     */
    void saveTeachplan(SaveTeachplanDto teachplan);

    /**
     * 删除课程计划
     *
     * @param id
     */
    void deleteTeachplan(Long id);

    /**
     * 课程计划排序移动
     *
     * @param id
     */

    public void moveTeachplan(Long id, String direction);
    /**
     * @description 教学计划绑定媒资
     * @param bindTeachplanMediaDto
     * @return com.xuecheng.content.model.po.TeachplanMedia
     * @author Mr.M
     * @date 2022/9/14 22:20
     */
    public TeachplanMedia associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);
}
